package com.grp6.game.chess.view;

import com.grp6.game.chess.model.ChessPlace;
import com.grp6.game.ui.platform.ICell;
import com.grp6.game.view.AbstractCellView;

public class ChessPlaceView extends AbstractCellView<ChessPlace>{

	@Override
	public void update() {
		for(ICell cell:getCells())
			cell.setTile("chess."
					+(model.isBlack()?"Black":"White")
					+"Tile");
		if (this.getModel().getPieces().size()==0)
			for(ICell cell:getCells())
				cell.setSymbol(null);
		
	}

}
